package com.renjibo.tianchatdemo;

import android.content.Intent;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;

import com.renjibo.tianchatdemo.view.MyScrollView;
import com.renjibo.tianchatdemo.view.MyScrollViewNew;

public class MainActivity extends AppCompatActivity {

    private CollapsingToolbarLayout flexible_example_collapsing;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        MyScrollViewNew personal_scrollView = (MyScrollViewNew) findViewById(R.id.personal_scrollView);
        ImageView imageView = (ImageView) findViewById(R.id.imageView);
        FloatingActionButton flexible_example_fab = (FloatingActionButton) findViewById(R.id.flexible_example_fab);
        flexible_example_fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, HomeActivity.class));
            }
        });
        personal_scrollView.setImageView(imageView);
    }
}
